<link rel='stylesheet' href='${rc.getContextPath()}/manage/styles/colorPicker/spectrum.css' />
<style>
dl.defectLookup span.error
{
    position:absolute !important;
    left:257px;
}

.sp-dd {
    background: url("${rc.getContextPath()}/manage/styles/dwz/themes/default/images/button/imgX.png");
    background-position: -163px -1px;
    height: 18px;
    width: 16px;
    position: absolute;
    right: 0px;
    top: 0px;
    border: 1px solid #D9DFE5;
}

.sp-replacer {
    padding: 0px;
    border: 0px !important;
    background: #EDF4F5 none repeat scroll 0% 0%;
    width: 146px;
    height: 24px;
    position: relative;
}

.sp-replacer.sp-active {
    border-color: #289BE5;
}

.sp-container, .sp-palette-container {
    border-color: #BDD7E7;
}

.sp-input {
    border: 1px solid #D9DFE5;
}

.sp-preview {
    width: 127px;
    height: 22px;
    border: 1px solid #D9DFE5;
    margin: 0px;
}

</style>
<div class="pageContent">
    <form method="post"
        action="${rc.getContextPath()}/manage/andonAccount/saveAndonAccount"
        class="pageForm required-validate"
        onsubmit="return validateCallback(this,dialogAjaxDone);">
        <div class="pageFormContent" >
            <fieldset>
            <dl>
                    <dt style="width: 120px;"><@label key="andonCode.C,colon">安灯编号：</@label></dt>
                    <dd>
                        <input name="andonCode" size="22" type="text" maxlength="60"  class="required toUp" readonly="readonly"
                        value="${andonAccount.andonCode!''}" />
                    </dd>
                </dl>
               
               <dl>
                    <dt style="width: 120px;"><@label key="andonText.C,colon">安灯描述：</@label></dt>
                    <dd>
                        <input name="andonText" size="22" type="text" maxlength="60"  readonly="readonly"
                        value="${andonAccount.andonText!''}" />
                    </dd>
                </dl>
                <dl>
                    <dt style="width: 120px;"><@label key="materialCode.C,colon">物料编号</@label></dt>
                    <dd>
                        <input name="materialCode" size="22" type="text" maxlength="20" 
                        class="required  alphanumeric toUp"    
                            value="${andonAccount.materialCode!''}"   
                        readonly="readonly"/>
                    </dd>
                </dl>
                <dl>
                    <dt style="width: 120px;"><@label key="materialText.C,colon">物料描述</@label></dt>
                    <dd>
                        <input name="materialText" size="22" type="text" maxlength="60" class="required" 
                        value="${andonAccount.materialText!''}" readonly="readonly"/>
                    </dd>
                </dl>
                    <dl>          
                    <dt style="width: 120px;"><@label key="andonTypeText.C,colon">物流类别</@label></dt>
                    <dd>
                        <input name="typeText" size="22" type="text" maxlength="60" class="required" 
                        value="${andonAccount.typeText!''}" readonly="readonly"/>
                    </dd>                   
                </dl>
                
                <dl>
                    <dt style="width: 120px;"><@label key="memo.C,colon">备注</@label></dt>
                    <dd>
                        <input name="memo" size="22" type="text" maxlength="60" class="required" 
                        value="${andonAccount.memo!''}"  readonly="readonly"  />
                    </dd>
                </dl>
                             
               <dl class="defectLookup">
                    <dt style="width: 120px;"><@label key="status.C,colon">状态</@label></dt>
                    <dd>
                    	<input name="lockFlag" size="22" type="text" maxlength="60" class="required" 
                         readonly="readonly" 
                         <#if andonAccount.lockFlag == 0>
                         	value="<@label key="enable.C">启用</@label>"
                         <#else>
                         	value="<@label key="disable.C">禁用</@label>"
                         </#if>
                    </dd>
                </dl>
                <dl>
                    
                </dl>
                <dl style="height:40px;">
                    <dt style="width: 120px;"><@label key="normalColor.C,colon">正常状态颜色</@label></dt>
                    <dd><input type='text' id="normalColor" name="normalColor" readonly="readonly"
                    value="${andonAccount.normalColor!'#FF0000'}"/></dd>
                </dl>
                <dl style="height:40px;">
                    <dt style="width: 120px;"><@label key="touchColor.C,colon">触发状态颜色</@label></dt>
                    <dd><input type='text' id="touchColor" name="touchColor" readonly="readonly"
                    value="${andonAccount.touchColor!'#FF0000'}"/></dd>
                </dl>                
            </fieldset>            
        </div>
        <div style="padding: 0px 10px 10px 10px;">
            <div class="createInfo" style="width:600px;">
                <p>
                    <label class="user"><@label key="createUser.C,colon">创建人：</@label><#if (andonAccount.createUser)??>${andonAccount.createUser}</#if></label> 
                    <label class="time"><@label key="createDateTime.C,colon">创建时间：</@label><#if (andonAccount.createDateTime)??>${andonAccount.createDateTime?string("yyyy-MM-dd HH:mm:ss")}</#if></label>
                </p>
                <p>
                    <label class="user"><@label key="modifyUser.C,colon">修改人：</@label><#if (andonAccount.modifyUser)??>${andonAccount.modifyUser}</#if></label> 
                    <label class="time"><@label key="modifyDateTime.C,colon">修改时间</@label><#if (andonAccount.modifyDateTime)??>${andonAccount.modifyDateTime?string("yyyy-MM-dd HH:mm:ss")}</#if></label>
                </p>
            </div>
        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                                <button type="button" class="close" onclick="beforeClose();"><@label key="close.B">关闭</@label></button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </form>
</div>
<script>
$(function(){
    var dialog= $.pdialog.getCurrent();
    var normalColor=$("#normalColor", dialog);
    var touchColor=$("#touchColor", dialog);
    $("#normalColor",dialog).css("background",normalColor.val()); 
    $("#touchColor",dialog).css("background",touchColor.val());
    normalColor.val("");
    touchColor.val("");
});
</script>
